package com.zimmor.lambda;

/**
 * @Author:zimmor
 * @Date: 2022/3/13 15:56
 * @Description
 * @version: 1.0.0
 */

public class LambdaDemo1 {
    public static void main(String[] args) {
        MathOperation mathOperation = (int a , int b) -> a+b;
        System.out.println("mathOperation.operation(4,6) = " + mathOperation.operation(4, 6));
    }

    interface  MathOperation {
        int operation(int a, int b);
    }
}
